<h2><?php pc_echo(pc_message("common.navigation.general")); ?></h2>
<ul>
    <li class="overview"><a href="./"><?php pc_echo(pc_message("common.navigation.general.overview")); ?></a></li>
    <li class="view-site"><a href="../"><?php pc_echo(pc_message("common.navigation.general.viewSite")); ?></a></li>
</ul>

<h2><?php pc_echo(pc_message("common.navigation.content")); ?></h2>
<ul id="nagivation-content">
    <?php 
        $siteConfig = pc_config("cm.site");
        foreach($siteConfig->getNamespaceConfigurations() as $namespaceConfig) { 
        $namespace = $namespaceConfig->getNamespace();
    ?>
    <li class="namespace-<?php pc_echo($namespace->getAlias()); ?>"><?php pc_echo(pc_message("namespace." . $namespace->getAlias())); ?><ul>
        <?php foreach($namespaceConfig->getTypeConfigurations() as $typeConfig) {
            $type = $typeConfig->getType(); ?>
            <li class="type-<?php pc_echo(Pageley_Util_String::splitCamelCase($type->getName(), "-")); ?>"><a href="<?php pc_echo(pc_link("Query", array("typeName" => $type->getFullName()))); ?>"><?php pc_echo(pc_message("namespace." . $namespace->getAlias() . "." . $type->getName() . ".plural")); ?></a></li>
        <?php } ?>
    </ul></li>
    <?php } ?>
</ul>